<template>
  <el-config-provider :locale="locale">
    <router-view/>
  </el-config-provider>
</template>

<script>
import {messages} from '@/lang/';
import useCommonStore from "@/stores/useCommonStore";
import {mapState} from "pinia";

export default {
  computed: {
    ...mapState(useCommonStore, ['language']),
    locale() {
      let languageType = this.language
      return messages[languageType]
    }
  },
  created() {
 
  },
  mounted() {
  }
}
</script>

<style>
html,
body,
#app {
  width: 100%;
  height: 100%;
}
</style>
